package com.stars.entity.system;


import javax.validation.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Table;
import io.swagger.annotations.ApiModelProperty;
import com.stars.common.base.BaseUUID;
/**
 * @Title: 系统创建的redis实体
 * @author dj
 * @date 2019-10-21 22:32:59
 * @version V1.0
 *
 */
@Data
@Table(name = "SYS_REDIS")
@EqualsAndHashCode(callSuper = false)
public class SysRedisEntity extends BaseUUID{

	/**key*/
    @NotBlank(message="key不能为空!")
    @ApiModelProperty(value = "key",name ="KEY_REDIS")
    @Column(name = "KEY_REDIS")
	private String keyRedis;
	/**值*/
    @NotBlank(message="值不能为空!")
    @ApiModelProperty(value = "值",name ="VALUE_JSON")
    @Column(name = "VALUE_JSON")
	private String valueJson;
	/**创建时间*/
    @Column(name = "CREATE_DATE")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间",name ="createDate")
	private Date createDate;


}